/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Library.Game;

import java.awt.Color;

/**
 * 
 */
public class PlayerColor
{
    /**
     *
     * @param color
     * @return
     */
    public static String getColorName(int color)
    {
        switch (color)
        {
            case 0:
                return "red";
            case 1:
                return "blue";
            case 2:
                return "green";
            case 3:
                return "yellow";
            case 4:
                return "orange";
            case 5:
                return "purple";
            case 6:
                return "brown";
            case 7:
                return "pink";
        }
        return "gray";
    }
    
    /**
     *
     * @param color
     * @return
     */
    public static Color getInnerColor(int color)
    {
	switch (color)
	{
	    case PlayerColor.REDPLAYER:
               return Color.BLACK;
            case PlayerColor.BLUEPLAYER:
               return Color.WHITE;
            case PlayerColor.GREENPLAYER:
               return Color.BLACK;
            case PlayerColor.YELLOWPLAYER:
               return Color.BLACK;
            case PlayerColor.ORANGEPLAYER:
               return Color.BLACK;
            case PlayerColor.PURPLEPLAYER:
               return Color.BLACK;
            case PlayerColor.BROWNPLAYER:
               return Color.BLACK;
            case PlayerColor.PINKPLAYER:
               return Color.BLACK;
            //case PlayerColor.NEURTALPLAYER:
            default:
               return Color.BLACK;
	}
    }
    
    /**
     *
     * @param color
     * @return
     */
    public static Color getColor(int color)
    {
        
       switch (color)
       {
           case PlayerColor.REDPLAYER:
               return Color.RED;
            case PlayerColor.BLUEPLAYER:
               return Color.BLUE;
            case PlayerColor.GREENPLAYER:
               return Color.GREEN;
            case PlayerColor.YELLOWPLAYER:
               return Color.YELLOW;
            case PlayerColor.ORANGEPLAYER:
               return Color.ORANGE;
            case PlayerColor.PURPLEPLAYER:
               return Color.getHSBColor(200, 240, 60);
            case PlayerColor.BROWNPLAYER:
               return Color.getHSBColor(0, 80, 110);
            case PlayerColor.PINKPLAYER:
               return Color.PINK;
            //case PlayerColor.NEURTALPLAYER:
            default:
               return Color.GRAY;
       }
    }
    
    /**
     *
     */
    public final static int REDPLAYER = 0;
    /**
     *
     */
    public final static int BLUEPLAYER = 1;
    /**
     *
     */
    public final static int GREENPLAYER = 2;
    /**
     *
     */
    public final static int YELLOWPLAYER = 3;
    /**
     *
     */
    public final static int ORANGEPLAYER = 4;
    /**
     *
     */
    public final static int PURPLEPLAYER = 5;
    /**
     *
     */
    public final static int BROWNPLAYER = 6;
    /**
     *
     */
    public final static int PINKPLAYER = 7;
    /**
     *
     */
    public final static int NEURTALPLAYER = 8;
}
